package com.david.dubbo.annotation.service.impl;


import com.david.dubbo.annotation.domain.User;
import com.david.dubbo.annotation.service.DavidService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author David
 * @version V1.0
 * @Package com.david.dubbo.xml.service.impl
 * @date 2021/4/8 23:57
 */
@Service //dubbo注解，用来声明它是一个服务提供者
public class DavidServiceImpl implements DavidService {
    public User queryUserById(int id) {
        User user =new User();
        user.setId(id);
        user.setAge(18);
        user.setName("David");
        return user;
    }
}
